/*
 * @Company: TSBVN
 * @Author: marcusbui
 * @Revision: May 12, 2011
 */
package tsb.com.html5.comment.dao;

import java.sql.SQLException;
import java.util.List;

import tsb.com.html5.comment.item.CommentItem;
import tsb.com.html5.comment.param.GetCommentParam;


/**
 * The Interface ICommentDao.
 */
public interface ICommentDao {
	
	/**
	 * Gets the all comment.
	 *
	 * @param parm the parm
	 * @return the all comment
	 * @throws Throwable the throwable
	 */
	public List<CommentItem> getAllComment(GetCommentParam parm)  throws Exception;
	
	/**
	 * Gets the comment by param.
	 *
	 * @param parm the parm
	 * @return the comment by param
	 * @throws Throwable the throwable
	 */
	public List<CommentItem> getCommentByParam(GetCommentParam parm)  throws Exception;
	
	/**
	 * Delete comment.
	 *
	 * @param parm the parm
	 * @return the int
	 * @throws SQLException the sQL exception
	 */
	public int deleteComment(CommentItem parm) throws Exception;
	
	/**
	 * Insert comment.
	 *
	 * @param parm the parm
	 * @return the int
	 * @throws SQLException the sQL exception
	 */
	public Object insertComment(CommentItem parm) throws Exception;
	
	
	/**
	 * Update comment.
	 *
	 * @param parm the parm
	 * @return the object
	 * @throws SQLException the sQL exception
	 */
	public Object updateComment(CommentItem parm) throws Exception;
}
